<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>九九乘法表</title>
    <style>
        body {
            font-family: 'Microsoft YaHei', sans-serif;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px;
            background-color: #f5f5f5;
        }
        .container {
            background: white;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            max-width: 800px;
            width: 100%;
        }
        h1 {
            color: #2c3e50;
            text-align: center;
            margin: 0 0 30px 0;
            font-size: 2.2em;
            padding-bottom: 10px;
            border-bottom: 2px solid #eaeaea;
        }
        table {
            border-collapse: collapse;
            margin: 0 auto;
            width: auto;
        }
        td {
            padding: 12px 16px;
            border: 1px solid #ddd;
            text-align: center;
            min-width: 100px;
            font-size: 1.1em;
        }
        .odd-row {
            background-color: #e8f4ff;
            font-weight: bold;
        }
        tr:hover td {
            background-color: #f0f9ff;
            transition: background-color 0.3s;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>九九乘法口诀表</h1>
        <table id="multiplicationTable"></table>
    </div>

    <script>
        document.addEventListener('DOMContentLoaded', function() {
            const table = document.getElementById('multiplicationTable');
            let html = '';

            for (let i = 1; i <= 9; i++) {
                const isOddRow = i % 2 !== 0;
                html += `<tr class="${isOddRow ? 'odd-row' : ''}">`;

                for (let j = 1; j <= i; j++) {
                    html += `<td>${j} × ${i} = ${i*j}</td>`;
                }

                html += '</tr>';
            }

            table.innerHTML = html;
        });
    </script>
</body>
</html>